/* RegisterPage.css - 注册页面组件样式 */

.register-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
}

.register-form-container {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    width: 100%;
    max-width: 800px;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-xl);
}

.register-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.register-title h1 {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-white);
    margin-bottom: var(--spacing-sm);
}

.register-title p {
    color: var(--text-gray-light);
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* 表单行布局 */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

/* 密码输入框容器 */
.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0;
}

.password-toggle:hover {
    color: var(--text-white);
}

/* 验证码输入组 */
.verify-group {
    display: flex;
    gap: var(--spacing-sm);
}

.verify-input {
    flex: 1;
}

.verify-btn {
    padding: 0.75rem var(--spacing-md);
    background: var(--primary-purple);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.875rem;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.verify-btn:hover:not(:disabled) {
    background: var(--purple-dark);
    transform: translateY(-1px);
}

.verify-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 文件上传 */
.file-input {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-white);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.file-input::-webkit-file-upload-button {
    margin-right: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 9999px;
    border: none;
    font-size: 0.875rem;
    background: var(--primary-purple);
    color: var(--text-white);
    cursor: pointer;
}

.file-input::-webkit-file-upload-button:hover {
    background: var(--purple-dark);
}

/* 页面底部链接 */
.register-footer {
    margin-top: var(--spacing-lg);
    text-align: center;
}

.register-footer p {
    color: var(--text-gray-light);
}

.form-link {
    margin-left: var(--spacing-xs);
    color: var(--purple-light);
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
    text-decoration: none;
}

.form-link:hover {
    color: var(--purple-accent);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .register-container {
        padding: var(--spacing-md);
        min-height: calc(100vh - 140px);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .verify-group {
        flex-direction: column;
    }

    .verify-btn {
        width: 100%;
    }

    .register-title h1 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .register-form-container {
        padding: var(--spacing-md);
    }

    .register-title h1 {
        font-size: 1.5rem;
    }
}